<template>
  <div class="rubbishDefault">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="id" align="center" label="订单号">
        <span>62122634567</span>
      </el-table-column>
      <el-table-column prop="time" align="center" label="下单时间" />
      <el-table-column prop="user" align="center" label="申请人" />
      <el-table-column prop="phone" align="center" label="联系方式" />
      <el-table-column prop="area" align="center" width="250" label="住址" />
      <el-table-column prop="lou" align="center" label="楼层" />
      <el-table-column prop="time" align="center" label="服务时间">
        <span>三个月</span>
      </el-table-column>
      <el-table-column prop="time" align="center" label="上门时间">
        <span>9.00</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="费用支付" />
      <el-table-column prop="state" align="center" label="订单状态" />
      <el-table-column prop="user2" align="center" label="代扔负责人">
        <template slot-scope="scope">
          <span v-show="scope.row.state==='待处理'? false : true">物业组刘武</span>
        </template>
      </el-table-column>
      <el-table-column prop="beizhu" align="center" label="备注" />
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    }
  },
  mounted() {
    var data = this.$route.params.data
    if (data == undefined) {
      this.goback()
    } else {
      this.defaultData.push(data)
    }
  },
  methods: {
    // 返回
    goback() {
      this.$router.push({ path: '/lowCcarbon/rubbish' })
    }
  }
}
</script>
<style lang="scss" scoped>
.rubbishDefault {
  margin-top: 55px;
}
</style>
